//
//  User.m
//  e-nurse
//
//  Created by  on 9/27/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "User.h"

@implementation User
@synthesize name = _name;
@synthesize password = _password;
@synthesize email = _email;
@synthesize phone = _phone;
@synthesize joinDate = _joinDate;
@synthesize firstName = _firstName;
@synthesize photo = _photo;
@synthesize occupation = _occupation;
@synthesize birthday = _birthday;
@synthesize address = _address;
@synthesize lastSignin = _lastSignin;
@synthesize pin = _pin;
@synthesize postcode = _postcode;
@synthesize privacy = _privacy;
@synthesize lastName = _lastName;
@synthesize city = _city;
@synthesize weight = _weight;
@synthesize height = _height;
@synthesize userId = _userId;
@synthesize educationDegree = _educationDegree;
@synthesize maritalStatus = _maritalStatus;
@synthesize gender = _gender;
@synthesize resourceUri = _resourceUri;
@synthesize isActivated = _isActivated;

- (void)dealloc
{
    self.name = nil;
    self.email = nil;
    self.phone = nil;
    self.password = nil;
    self.firstName = nil;
    self.photo = nil;
    self.address = nil;
    self.postcode = nil;
    self.privacy = nil;
    self.lastName = nil;
    self.city = nil;
    self.resourceUri = nil;
    
    [super dealloc];
}

- (id)init
{
    self = [super init];
    if(self)
    {
        self.userId = ANONY_USER_ID;
        self.isActivated = NO;
    }
    return  self;
}
@end
